<body>
   	<div id="cont">
    	<div id="header_slim">
        	<div id="header_main">
            	<div id="mhleft">
                </div>
                
                <div id="mhcenter" ice:editable="*">
                	<img src="<?=base_url()?>style/ics_logo_blue.png" id="logo"/>
                  <div id="label_sais">
                    	<div id="border_label">	</div>
                    <div id="label"><p>Students' Academic Information System</p></div>
                  </div>
                </div>
                
                <div id="mhright">
                </div>
            </div>

            <div id="bottomhead">
            	<div id="bhleft_slim">
                </div>
                <div id="menu_bar_slim">
                	<!--menu -->
                	<div class="header_link">
                        <h>Logged in as: <?=$this->session->userdata('user');?></h>
                    </div>
                    <div class="header_link">
                        <h>Insert admin tasks here</h>
                    </div>
                    <div class="header_link">
                        <h><?echo anchor('home/encoder_view_students', 'View All Students'); ?></h>
                        <h><?echo anchor('home/admin_pending_process', 'View Pending Accounts'); ?></h>
                    </div>
                    <div class="header_link">
                        <h><?echo anchor('home/logout', 'Log out');?></h>
                    </div>
                </div>
            </div>
        </div>
        <div id="body">
      		<div id="body_border">	<!--light blue border-->
      			<?
                    
      			?>
       		</div>

            Admin log
            <br>    
            <br>
            <table name="admin_log" class="admin_log">    
            <tr>
                <td>Date and Time</td>
                <td>Log_ID</td>
                <td>Activity</td>
                <td>User_Involved</td>

            </tr>
            <?
                $query = "SELECT * from log";
                $result = $this->db->query($query);
                foreach($result->result() as $row){
                    echo "<tr>";
                    echo "<td>".$row->TIME_AND_DATE."</td>";
                    echo "<td id='idclass'>".$row->LOG_ID."</td>";
                    echo "<td>".$row->ACTIVITY."</td>";
                    echo "<td>".$row->USER_INVOLVED."</td>";
                    echo "</tr>";
                }            
            ?>
            </table>
        </div>
	</div>
</body>
</html>